<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<title>在线考试系统后台管理</title>
	<link type="text/css" rel="stylesheet" href="<%=basePath%>/script/ligerUI/skins/Aqua/css/ligerui-all.css">
	<script type="text/javascript" src="<%=basePath%>/script/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>/script/ligerUI/js/ligerui.min.js"></script>
  	<script type="text/javascript">
				var tab = null;
            	var tree = null;
                jQuery(function ()
                {

                    jQuery("#layout1").ligerLayout({ leftWidth: 190, height: '100%'});
                    
                    var height = $(".l-layout-center").height();
                    //Tab
					$("#framecenter").ligerTab({ height: height }); 
                    //树
					$("#tree2").ligerTree({
							checkbox: false,
							nodeWidth: 120,
							attribute: ['nodename', 'url'],
							onSelect: function (node)
							{
							if (!node.data.url) return;
							var tabid = $(node.target).attr("tabid");
							if (!tabid)
							{
							tabid = new Date().getTime();
							$(node.target).attr("tabid", tabid)
							}
							if ($(">ul >li", tab.tab.links).length >= 8)
							{
							var currentTabid = $("li.l-selected", tab.tab.links).attr("tabid"); //当前选择的tabid
							if (currentTabid == "home") return;
							tab.overrideTabItem(currentTabid, { tabid: tabid, url: node.data.url, text: node.data.text });
							return;
							}
							f_addTab(tabid, node.data.text, node.data.url);
							}
					}); 
					tab = $("#framecenter").ligerGetTabManager();
					tree = $("#tree2").ligerGetTreeManager();
					$("#pageloading").hide();
					
                });
                function f_addTab(tabid,text, url){
					tab.addTabItem({ tabid : tabid,text: text, url: url });
				} 
                
		</script>
		<style type="text/css"> 
		    body,html{height:100%;}
		    body{ padding:0px; margin:0;   overflow:hidden;}  
		    .l-link{ display:block; height:26px; line-height:26px; padding-left:10px; text-decoration:underline; color:#333;}
		    .l-link2{text-decoration:underline; color:white; margin-left:2px;margin-right:2px;}
		    .l-layout-top{background:#102A49; color:White;}
		    .l-layout-bottom{ background:#E5EDEF; text-align:center;}
		    #pageloading{position:absolute; left:0px; top:0px; background:white url('../images/ligerUI/loading.gif') no-repeat center; width:100%; height:100%;z-index:99999;}
		    .l-link{ display:block; line-height:22px; height:22px; padding-left:16px;border:1px solid white; margin:4px;}
		    .l-link-over{ background:#FFEEAC; border:1px solid #DB9F00;} 
		    .l-winbar{ background:#2B5A76; height:30px; position:absolute; left:0px; bottom:0px; width:100%; z-index:99999;}
		    .space{ color:#E7E7E7;}
		    /* 顶部 */ 
		    .l-topmenu{ margin:0; padding:0; height:31px; line-height:31px; background:url('../images/ligerUI/top.jpg') repeat-x bottom;  position:relative; border-top:1px solid #1D438B;  }
		    .l-topmenu-logo{ color:#E7E7E7; padding-left:35px; line-height:26px;background:url('../images/ligerUI/topicon.gif') no-repeat 10px 5px;}
		    .l-topmenu-welcome{  position:absolute; height:24px; line-height:24px;  right:30px; top:2px;color:#070A0C;}
		    .l-topmenu-welcome a{ color:#E7E7E7; text-decoration:underline} 
		
		 </style>
  </head>
<body style="padding:0px;background:#EAEEF5;">
<div id="pageloading"></div>  
	<div id="topmenu" class="l-topmenu">
	    <div class="l-topmenu-logo">在线考试系统后台管理</div>
	    <div class="l-topmenu-welcome">
	        <a href="logout.action" class="l-link2">退出</a>
	    </div> 
	</div>
      <div id="layout1" style="width:99.2%; margin:0 auto; margin-top:4px;">
            <div position="left">
            		<!-- s tree  -->
            	   <div>
				    <ul id="tree2">
				        <li>
				            <span>基础管理</span>
				            <ul>
				                <li url="user_index.action"><span>用户管理</span></li>
				                <li url="sp_index.action"><span>SP管理</span></li>
				                <li url="property_index.action"><span>属性数据管理</span></li>
				            </ul>
				        </li>
				        <li>
				            <span>题库管理</span>
				            <ul>
				            	<li url="../cas/banks_index.action"><span>题库管理</span></li>
				                <li url="../cas/chaptertips_index.action"><span>知识点管理</span></li>
				                <li url="../cas/types_index.action"><span>题型管理</span></li>
				                <li url="../cas/items_index.action"><span>题目管理</span></li>
				            </ul>
				        </li>
				        <li>
				            <span>试卷管理</span>
				            <ul>
				            	<li url="activitlog_index.action"><span>试卷类别</span></li>
				            	<li url="activitlog_index.action"><span>试卷模板</span></li>
				                <li url="activitlog_index.action"><span>试卷管理</span></li>
				            </ul>
				        </li>
				        <li>
				            <span>考试管理</span>
				            <ul>
				            	<li url="activitlog_index.action"><span>考试管理</span></li>
				                <li url="activitlog_index.action"><span>成绩管理</span></li>
				                <li url="activitlog_index.action"><span>判卷管理</span></li>
				            </ul>
				        </li>
				    </ul>
				    </div>
				   <!-- end tree -->
            </div>
            	<!--  右边 -->
            	<div position="center" id="framecenter"> 
		            <div tabid="home" title="我的主页" style="height:300px" >
		                <!-- <iframe frameborder="0" name="home" src="./wecome.jsp"></iframe> -->
		            </div> 
        		</div> 
        		<!--  右边 -->
        </div> 
  </body>
</html>
